package com.hqyj.module.clock.controller;

import com.hqyj.module.clock.dao.UserInfoDao;
import com.hqyj.module.clock.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lap
 * @version 1.0
 * @date 2021/9/30 13:08
 */
@RestController
public class UserClockController {

    @Autowired
    UserInfoDao userInfoDao;


    @GetMapping("/selectClock")
    public Map<String,Object> selectClock(){
        Map<String, Object> map = new HashMap<>();
        String userName = "admin";
        UserInfo userInfo = userInfoDao.selectUserInfo(userName);
        map.put("info",userInfo);
//        Map<String, Object> map = new HashMap<>();
        return map;
    }
}
